package com.kk.xhr.model.service;

import com.kk.xhr.common.pojo.RecruitStatusEnum;
import com.kk.xhr.model.dto.PageDto;
import com.kk.xhr.model.dto.RecruitDTO;
import com.kk.xhr.model.dto.RecruitQueryRequestDTO;

import java.util.Collection;
import java.util.Optional;

/**
 * 招聘服务接口
 *
 * @author kkmystery
 * @version 1.0 2021/4/6
 * @since 1.0.0
 */
public interface IRecruitService {
    void add(Collection<Long> userIds, RecruitDTO dto);

    Optional<RecruitDTO> query(Long id);

    void modify(RecruitDTO dto);

    void modifyStatus(Long id, RecruitStatusEnum status);

    PageDto<RecruitDTO> queryPage(RecruitQueryRequestDTO dto);

    PageDto<RecruitDTO> queryPage(Long userId, RecruitQueryRequestDTO dto);

    void deleteRef(Long recruitId);
}
